package com.hunau.zshop.pojo;


import java.util.HashMap;
import java.util.Map;

public class AjaxObject {
    private boolean success;
    private Map<String,Object> datas = new HashMap<>();

    public AjaxObject setSuccess() {
        this.success=true;
        return this;
    }

    public Map<String, Object> getDatas() {
        return datas;
    }



    public AjaxObject put(String s, Object o){
        this.datas.put(s,o);
        return this;
    }

    public boolean isSuccess() {
        return success;
    }

    public AjaxObject setFail(){
        this.success=false;
        return this;
    }
}
